home *** CD-ROM | disk | FTP | other *** search
/ 3D Images / 3D Images.iso / programs / amiga / rayshade / urt / include / make-config-h < prev    next >
Encoding:
Text File  |  1995-01-12  |  662 b   |  37 lines

  1. #! /bin/sh
  2. #
  3. # A script to make a file "rle_config.h" from the configuration parameters.
  4. #
  5. # The command line consists of a list of symbols to be defined.
  6. # If a symbol should have a value, the corresponding command line argument
  7. # would be "sym=value".
  8. #
  9.  
  10. oldIFS="$IFS"
  11. args="$*"
  12.  
  13. echo "/* rle_config.h"
  14. echo " * "
  15. echo " * Automatically generated by make-config-h script."
  16. echo " * DO NOT EDIT THIS FILE."
  17. echo " * Edit include/makefile.src and the configuration file instead."
  18. echo " */"
  19. echo ""
  20.  
  21.  
  22. for a in $args ; do
  23.     case $a in
  24.         *=*)
  25.             IFS="$oldIFS"=
  26.             set $a
  27.             sym=$1
  28.             val=$2
  29.             ;;
  30.         *)
  31.             sym=$a
  32.             val=$a
  33.             ;;
  34.     esac
  35.     echo "#define $sym $val"
  36. done
  37.